package com.giveu.signature.module.template.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import com.giveu.common.bean.BaseEntity;
import lombok.Data;
/**
 * <p>
 * 签章参数
 * </p>
 *
 * @author zhaoruding
 * @since 2019-10-30
 */
@Data
@Table(name="sign_template_param")
public class SignTemplateParam extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
	@Id
	private Long id;
    /**
     * 参数编码
     */
	@Column(name="param_code")
	private String paramCode;
    /**
     * 参数名称
     */
	@Column(name="param_name")
	private String paramName;
    /**
     * 参数版本号
     */
	@Column(name="param_version")
	private Integer paramVersion;
	
	@Transient
	private Integer maxVersion;
    /**
     * 参数状态(0=草稿状态,1=发布状态,-1=无效状态)
     */
	@Column(name="param_status")
	private Integer paramStatus;
	
	@Column(name="http_sys_name")
	private String httpSysName;
	
	@Column(name="http_param")
	private String httpParam;
	
	@Column(name="http_url")
	private String httpUrl;
    /**
     * 参数数据源编码
     */
	@Column(name="data_source")
	private String dataSource;
    /**
     * js处理方法
     */
	@Column(name="js_function")
	private String jsFunction;
    /**
     * sql查询语句
     */
	@Column(name="sql_select")
	private String sqlSelect;
	@Column(name="create_time")
	private Date createTime;
	@Column(name="create_user")
	private String createUser;
	@Column(name="update_time")
	private Date updateTime;
	@Column(name="update_user")
	private String updateUser;
	
	@Transient
	private boolean modify;
}
